\version "2.24.3"

#(set-default-paper-size '(cons (* 210 mm) (* 5000 mm)))

\header {
  tagline = #f
}

bassOne = \relative {
  \newSpacingSection
  \override Score.SpacingSpanner.spacing-increment = #0.2
  \once \override Staff.TimeSignature.stencil = ##f
  \numericTimeSignature
  \key a \major
  \tempo 4 = 160
  \partial 256 s256 |
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  \repeat volta 2 {
    \time 5/4
    fis4 e8 cis~ cis a fis4 fis8 fis |
    \time 4/4
    fis8 fis fis a, \afterGrace <a d>4.\glissando { \hideNotes <d gis>16 \unHideNotes } a''8 |
  }
}

bassTwo = \relative {
  \once \override Staff.TimeSignature.stencil = ##f
  \numericTimeSignature
  \key a \major
  \tempo 4 = 160
  \partial 256 s256 |
  \repeat volta 2 {
    \time 5/4
    d,4 d'8 cis d cis~ cis a fis d |
    \time 4/4
    a'8 cis <a e'>4-. <a d>-. <a cis> |
  }
}

kitOne = \drummode {
  \once \override Staff.TimeSignature.stencil = ##f
  \numericTimeSignature
  \tempo 4 = 160
  \partial 256 s256 |
  \repeat volta 2 {
    \time 5/4
    cymc4 <sn hh> hh8 sn hh4 <sn hh>8. \parenthesize sn16 |
    \time 4/4
    hh8 hh <sn hh> hho hh4 <sn hh>8 hh |
    %\time 5/4
    %cymc4 <sn hh> hh8 sn hh4 <sn hh>8 hho |
    %\time 4/4
    %r8 <sn hh> hho4 <sn hh>8 hho hho sn16 16 |
  }
}

kitTwo = \drummode {
  \once \override Staff.TimeSignature.stencil = ##f
  \numericTimeSignature
  \tempo 4 = 160
  \partial 256 s256 |
  \repeat volta 2 {
    \time 5/4
    bd2 bd4 r8 bd r4 |
    \time 4/4
    bd8 bd r bd r bd r4 |
    %\time 5/4
    %bd2 bd4 r8 bd r bd |
    %\time 4/4
    %hhp4 bd8 hhp r bd bd4 |
  }
}

fullScore = <<
  \new Staff \with {
    midiInstrument = "electric bass (pick)"
    midiPanPosition = #-1.0
  } {
    \clef "bass_8"
    \tag #'folded { \bassOne }
    \tag #'unfolded { \unfoldRepeats \bassOne }
  }

  \new Staff \with {
    midiInstrument = "electric bass (pick)"
    midiPanPosition = #1.0
  } {
    \clef "bass_8"
    \tag #'folded { \bassTwo }
    \tag #'unfolded { \unfoldRepeats \bassTwo }
  }

  \tag #'folded {
    \new DrumStaff \with { drumStyleTable = #weinberg-drums-style } <<
      \new DrumVoice { \voiceOne \kitOne }
      \new DrumVoice { \voiceTwo \kitTwo }
    >>
  }
  \tag #'unfolded {
    \new DrumStaff \with { drumStyleTable = #weinberg-drums-style } <<
      \new DrumVoice { \unfoldRepeats { \voiceOne \kitOne } }
      \new DrumVoice { \unfoldRepeats { \voiceTwo \kitTwo } }
    >>
  }
>>

\score {
  \removeWithTag #'unfolded
  \fullScore

  \layout {
    indent = 0

    \context {
      \Score
      \override Glissando.minimum-length = #4
      \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods
      \override Glissando.thickness = #2
    }

    \context {
      \StaffGroup
      \RemoveAllEmptyStaves
    }
  }
}

\score {
  \removeWithTag #'folded
  \fullScore

  \midi { }
}
